import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import { createPinia } from "pinia";
import i18n from "./locales";

import "./style.css";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "./assets/font/iconfont";

//引入代码高亮
import HljsVuePlugin from '@highlightjs/vue-plugin'
import "highlight.js/styles/atom-one-light.css";
import 'highlight.js/lib/common'

//引入ECharts
import ECharts from 'vue-echarts'
import 'echarts'

const app = createApp(App);
const pinia = createPinia();
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component('v-chart', ECharts)

app.use(pinia);
app.use(router);
app.use(i18n);
app.use(ElementPlus);
app.use(HljsVuePlugin);


app.mount("#app");
